/*
 * @Description: 
 * @Author: zhanyinjia
 * @Date: 2024-08-29 16:42:32
 * @LastEditors: zhanyinjia
 * @LastEditTime: 2024-08-30 10:59:27
 */
import path from 'node:path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import tailwind from 'tailwindcss'
import autoprefixer from 'autoprefixer'

export default defineConfig({
  server: {
    port: 5566,
    open: true,
  },
  css: {
    postcss: {
      plugins: [tailwind(), autoprefixer()],
    },
  },
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
    },
  },
})